package cn.hg.solon.youcan.common.vo;

import java.util.Map;

import org.dromara.hutool.core.bean.BeanUtil;

import cn.hg.solon.youcan.common.constant.AppConstants;

/**
 * 基本查询对象
 *
 * @author 胡高
 */
public class BaseQueryObject extends BaseVo {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 1352772495431388859L;

    private String sortField;

    private String sortType;

    private Integer pageNumber = AppConstants.DEFAULT_PAGE_NUMBER;

    private Integer pageSize = AppConstants.DEFAULT_PAGE_SIZE;

    private String word;

    public Integer getPageNumber() {
        return this.pageNumber;
    }

    public Integer getPageSize() {
        return this.pageSize;
    }

    public String getSortField() {
        return this.sortField;
    }

    public String getSortType() {
        return this.sortType;
    }

    public String getWord() {
        return this.word;
    }

    public void setPageNumber(Integer pageNumber) {
        this.pageNumber = pageNumber;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public void setSortField(String sortField) {
        this.sortField = sortField;
    }

    public void setSortType(String sortType) {
        this.sortType = sortType;
    }

    public void setWord(String word) {
        this.word = word;
    }

    public Map<String, Object> toMap() {
        return BeanUtil.beanToMap(this);
    }
}
